<!DOCTYPE html>
<html lang="zh-CN">
<%- include('../public/meta', {title: '文章列表'}); %>
<body>
<%- include('../public/header', {nav: 'note', type: params.type || ''}); %>
<div class="cl-cantainer container">
  <div class="row">
    <div class="col-md-9 cl-left">
      <% if (!notes.length) { %>
        <div class="block-empty" style="min-height:330px">
          <div><img data-src="/dblog/static/img/nodata.png" alt="" /></div>
          <div><a href="/dblog/index/v/index.html">返回首页</a></div>
        </div>
      <% } %>
      <% for(var i = 0; i < notes.length; i++) { %>
      <div class="cl-card">
        <div class="row">
          <div class="col-lg-3 col-md-4 col-sm-12 cl-card-image">
            <a href="calmlog-details.html" target="_blank">
              <% if(notes[i].cover) { %>
              <img data-src="<%=notes[i].cover %>" class="img-fluid" alt="<%=notes[i].title %>">
              <% } else { %>
              <img data-src="/dblog/static/img/default-img.jpg" class="img-fluid" alt="<%=notes[i].title %>">
              <% } %>
            </a>
          </div>
          <div class="col-lg-9 col-md-8 col-sm-12 cl-card-main">
            <h3 class="cl-card-main-title">
              <a href="/dblog/note/v/detail.html?id=<%=notes[i].id %>" target="_blank"><%=notes[i].title %></a>
            </h3>
            <p class="cl-card-main-info"><%=notes[i].content %></p>
            <p class="cl-card-more">
              <span class="text-lightgray"><%=notes[i].createTime %></span>
              <a href="/dblog/note/v/detail.html?id=<%=notes[i].id %>" target="_blank">阅读更多...</a>
            </p>
          </div>
        </div>
      </div>
      <% } %>
      <%- include('../public/pager', {pager: pager, path: '/dblog/note/v/index.html?type=' + (params.type || '') + '&labels=' + (params.labels || '') + '&'}); %>
    </div>
    <div class="col-md-3 cl-right">
      <%- include('../public/news'); %>
      <%- include('../public/tags'); %>
      <%- include('../public/contact'); %>
    </div>
  </div>
</div>
<%- include('../public/footer'); %>
<%- include('../public/script-bottom'); %>
</body>
</html>